package com.tiandao.mofang.core.role;

import java.awt.event.KeyEvent;

public class ShengDao extends BaseRole implements Runnable {

    @Override
    public void run() {
        while (true){
            DaGuai();
        }
    }

    /**
     * 技能按一遍
     */
    public static void DaGuai(){
        xhc();                  //1.5s
        rollAfter();            //0.5s
        yjck();                 //1.8s
        kfd();                  //2.4s
        dzl();                  //1.0s
        tdfh();                 //3.4s
        xhc();                  //1.5s
        rollAfter();            //0.5s
        yjck();                 //1.8s
        dzl();                  //1.0s
        tlz();                  //0.9s
        lzsc();                 //2.4s
        xhc();                  //1.5s
        dzl();                  //1.0s
        yjck();                 //1.8s
        kfd();                  //2.4s
        lzsc();                 //2.4s
        yjck();                 //1.8s
        zxc();                  //0.4s
        xhc();                  //1.0s
        tdfh();                 //3.4s
        tjm();                  //1.8s
        rollAfter();            //0.5s
        yjck();                 //1.8s
        dzl();                  //1.0s
        lzsc();                 //1.8s
    }

    public static void main(String[] args) {
      DaGuai();
    }
    /**
     * 笑红尘
     * 冷却  8
     * 释放1.5s
     */
    public static void xhc(){
        try {
            Thread.sleep(500);
            robot.keyPress(KeyEvent.VK_1);
            robot.keyRelease(KeyEvent.VK_1);
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
    /**
     * 断中流
     * 冷却3
     * 释放1
     */
    public static void dzl(){
        try {
            Thread.sleep(500);
            robot.keyPress(KeyEvent.VK_2);
            robot.keyRelease(KeyEvent.VK_2);
            Thread.sleep(500);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    /**
     * 斩血海
     */
    public static void zxh(){
        try {
            Thread.sleep(500);
            robot.keyPress(KeyEvent.VK_3);
            robot.keyRelease(KeyEvent.VK_3);
            Thread.sleep(700);
            robot.keyPress(KeyEvent.VK_3);
            robot.keyRelease(KeyEvent.VK_3);
            Thread.sleep(700);
            robot.keyPress(KeyEvent.VK_3);
            robot.keyRelease(KeyEvent.VK_3);
            Thread.sleep(700);
            robot.keyPress(KeyEvent.VK_3);
            robot.keyRelease(KeyEvent.VK_3);
            Thread.sleep(1800);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    /**
     * 啄星辰
     */
    public static void zxc(){
        try {
            Thread.sleep(200);
            robot.keyPress(KeyEvent.VK_4);
            robot.keyRelease(KeyEvent.VK_4);
            Thread.sleep(200);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    /**
     * 天将明
     */
    public static void tjm(){
        try {
            Thread.sleep(400);
            robot.keyPress(KeyEvent.VK_Q);
            robot.keyRelease(KeyEvent.VK_Q);
            Thread.sleep(1400);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    /**
     * 解控:回风斩
     */
    public static void hfz(){
        try {
            Thread.sleep(400);
            robot.keyPress(KeyEvent.VK_E);
            robot.keyRelease(KeyEvent.VK_E);
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    /**
     * 踏浪斩
     */
    public static void tlz(){
        try {
            Thread.sleep(400);
            robot.keyPress(KeyEvent.VK_R);
            robot.keyRelease(KeyEvent.VK_R);
            Thread.sleep(500);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
    /**
     * 天地烽火
     */
    public static void tdfh(){
        try {
            Thread.sleep(400);
            robot.keyPress(KeyEvent.VK_T);
            robot.keyRelease(KeyEvent.VK_T);
            Thread.sleep(2500);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    /**
     * 狂风刀
     */
    public static void kfd(){
        try {
            Thread.sleep(400);
            robot.keyPress(KeyEvent.VK_G);
            robot.keyRelease(KeyEvent.VK_G);
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    /**
     * 鹰击长空
     */
    public static void yjck(){
        try {
            Thread.sleep(500);
            robot.keyPress(KeyEvent.VK_0);
            robot.keyRelease(KeyEvent.VK_0);
            Thread.sleep(700);
            robot.keyPress(KeyEvent.VK_0);
            robot.keyRelease(KeyEvent.VK_0);
            Thread.sleep(600);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    /**
     * 浪子三唱
     */
    public static void lzsc(){
        try {
            Thread.sleep(400);
            robot.keyPress(KeyEvent.VK_9);
            robot.keyRelease(KeyEvent.VK_9);
            Thread.sleep(200);
            robot.keyPress(KeyEvent.VK_9);
            robot.keyRelease(KeyEvent.VK_9);
            Thread.sleep(200);
            robot.keyPress(KeyEvent.VK_9);
            robot.keyRelease(KeyEvent.VK_9);
            Thread.sleep(200);
            robot.keyPress(KeyEvent.VK_9);
            robot.keyRelease(KeyEvent.VK_9);
            Thread.sleep(200);
            robot.keyPress(KeyEvent.VK_9);
            robot.keyRelease(KeyEvent.VK_9);
            Thread.sleep(200);
            robot.keyPress(KeyEvent.VK_9);
            robot.keyRelease(KeyEvent.VK_9);
            Thread.sleep(200);
            robot.keyPress(KeyEvent.VK_9);
            robot.keyRelease(KeyEvent.VK_9);
            Thread.sleep(200);
            robot.keyPress(KeyEvent.VK_9);
            robot.keyRelease(KeyEvent.VK_9);
            Thread.sleep(200);
            robot.keyPress(KeyEvent.VK_9);
            robot.keyRelease(KeyEvent.VK_9);
            Thread.sleep(400);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }


}
